<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>com.sekati.net.Bandwidth - SASAPI</title><script src="../../../quicknav.js" type="text/javascript"></script><script><!--
document.quicknavBasePath="../../../index-files";
//--></script><link href="../../../style.css" title="JavaDoc" rel="stylesheet" type="text/css"/><link href="../../../unnatural.css" title="Unnatural" rel="alternate stylesheet" type="text/css"/><link href="../../../overview-summary.html" title="Overview" rel="top"/><link href="package-summary.html" title="Package com.sekati.net" rel="up"/><link href="../../../com/sekati/net/ExpressInstall.html" title="Class com.sekati.net.ExpressInstall" rel="prev"/><link href="../../../com/sekati/math/RuleOf3.html" title="Class com.sekati.math.RuleOf3" rel="next"/><meta name="generator" content="http://www.badgers-in-foil.co.uk/projects/as2api/"/></head><body><h1>Class com.sekati.net.Bandwidth</h1><div class="type_hierachy"><ul><li><a href="../../../com/sekati/core/CoreObject.html" class="class_name" title="Class com.sekati.core.CoreObject">com.sekati.core.CoreObject</a><ul><li><strong>com.sekati.net.Bandwidth</strong></li></ul></li></ul></div><div class="type_description"><h2>Description</h2><p>
 Simple bandwidth throughput test
 <pre> Usage:
 <span class="key">function</span> bandwidthResult(speed:Number, testsize:Number, ms:Number){
 	trace(<span class="str_const">"bandwidth speed: "</span>+speed+<span class="str_const">"kbps, test filesize: "</span>+testsize+<span class="str_const">", test time: "</span>+ms+<span class="str_const">"ms"</span>);
 }
 <span class="key">var</span> bandwidthTest = <span class="key">new</span> com.sekati.net.Bandwidth(<span class="str_const">"assets/bandwidth_data/50k"</span>, bandwidthResult);
 </pre> 
 </p></div><div class="type_indexes"><div class="method_index"><h2>Method Index</h2><div><code>new <a href="#Bandwidth" title="public function Bandwidth(uri:String, cb:Function)">Bandwidth()</a></code></div><h4>Inherited from <a href="../../../com/sekati/core/CoreObject.html" class="class_name" title="Class com.sekati.core.CoreObject">CoreObject</a></h4><div class="extra_info"><a href="../../../com/sekati/core/CoreObject.html#destroy" title="public function destroy():Void">destroy()</a>, <a href="../../../com/sekati/core/CoreObject.html#toString" title="public function toString():String">toString()</a></div></div></div><div class="type_details"><div class="constructor_detail_list"><h2>Constructor Detail</h2><div class="method_details"><a name="Bandwidth"></a><h3>Bandwidth</h3><code class="method_synopsis">public function <strong class="method_name">Bandwidth</strong>(uri:<span class="unresolved_type_name">String</span>, cb:<span class="unresolved_type_name">Function</span>)</code><div class="method_info"><p>
 constructor
 </p><h4>Parameters</h4><table class="arguments extra_info" summary=""><tr><td><code>uri</code></td><td>(String) uri to bandwidth test file (should be non tcp/ip compressable random "junk data" see deploy/assets/bandwidth_data) 
 </td></tr><tr><td><code>cb</code></td><td>(Function) callback function for test to return speed, filesize, ms results.
	 </td></tr></table></div></div></div></div><ul class="main_nav" id="main_nav"><li><a href="../../../overview-summary.html" title="Overview of SASAPI" class="button">Overview</a></li><li><a href="package-summary.html" title="Overview of package com.sekati.net" class="button">Package</a></li><li><span class="button nav_current">Class</span></li><li><a href="Bandwidth.as.html" title="Source code of com.sekati.net.Bandwidth" class="button">Source</a></li><li><a href="../../../index-files/index.html" title="Alpabetical index of types and members" class="button">Index</a></li></ul><div class="footer"><a href="http://www.badgers-in-foil.co.uk/projects/as2api/" title="ActionScript 2 API Documentation Generator">as2api</a></div></body></html>